<?php 
echo $objFungsi->buatJudul('Daftar Pesanan yang pernah saya layani');
$myOrd=$objPemesanan->getMyOwnHandleOrder();
?>
<div class="frame_table_order">
	<table width="100%" cellpadding="5" cellspacing="0" border="1" style="border-collapse:collapse">

		<thead>

			<tr align="center" valign="middle" bgcolor="#CCCCCC">
				<td>Tanggal</td>
				<td>Nama Pemesan</td>
				<td>Pesan Tambahan</td>
				<td>Subtotal</td>
				<td>Kota Tujuan</td>
				<td>Biaya Pengiriman</td>
				<td>Total</td>
				<td>Detail</td>
			</tr>
		</thead>


		<?php
		if($myOrd['success']==true && $myOrd['total']>0){
			?>
			<?php foreach ($myOrd['result'] as $dtPsn): ?>

			<tr class="font_isi_judul" align="center" valign="middle">
				<td><?php echo $objFungsi->tanggal1($dtPsn['tanggal']); ?></td>
				<td><?php echo $dtPsn['nama_pemesan'] ?></td>
				<td><?php echo $objFungsi->readMore($dtPsn['pesan_tambahan']); ?></td>
				<td><?php echo $objFungsi->formatUang($dtPsn['subtotal']); ?></td>
				<td><?php echo $dtPsn['kota_tujuan'] ?></td>
				<td><?php echo $objFungsi->formatUang($dtPsn['biaya_ongkir']); ?></td>
				<td><?php echo $objFungsi->formatUang($dtPsn['biaya_ongkir']+$dtPsn['subtotal']); ?></td>
				<td><a href="<?php echo BASEURLADMIN.'?v=transaksi&p=prosesorder&idorder='.$dtPsn['id_pemesanan'] ?>">Detail</a></td>
			</tr>
		<?php endforeach ?>
		<?php
	}
	else{

	}
	?>

</table>
</div>